cmake_minimum_required(VERSION 3.13)

set(turbo_cal_generated_dir "${CMAKE_CURRENT_SOURCE_DIR}/generated")
file(GLOB_RECURSE turbo_cal_generated_SRC "${turbo_cal_generated_dir}/**/*.cpp")

file(GLOB turbo_cal_SRC CONFIGURE_DEPENDS *.cpp)

add_library(turbo_cal SHARED ${turbo_cal_SRC} ${turbo_cal_generated_SRC})

target_include_directories(turbo_cal PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${turbo_cal_generated_dir})
target_link_libraries(turbo_cal PUBLIC rnoh)